<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>值绑定</title>
</head>
<body>
<div id="example-1">
    <input type="checkbox" v-model="toggle" true-value="yes" false-value="no"/>
    <span>当前值{{ toggle }}</span><br>
    <input type="radio" v-model="pick" v-bind:value="a"/>

</div>
<script type="text/javascript" src="source/vue.js"></script>
<script type="text/javascript">
    var example1 = new Vue({
        el: '#example-1',
        data: {
            toggle: '',
            pick: '',
            a: false
        }
    })
</script>
</body>
</html>